package com.bdqn;

import java.io.IOException;
import java.io.Serializable;

/**
 * Hello world!
 *
 */
public class Person extends BaseClass implements Serializable {
    // 成员变量
    private String name;
    static final int age = 30;
    protected String address;
    private String message;

    public Person() {
    }

    private Person(String name){this.name=name;}

    protected Person(String name, String message) {
        this.name = name;
        this.message = message;
    }

    static final int getAge(){
        return age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    protected String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    private void silentMethod() throws IOException,NullPointerException{
        System.out.println("这是悄悄话");
    }



}
